#ifndef CONNECTIONACCEPTINGTHREAD_H
#define CONNECTIONACCEPTINGTHREAD_H

#include "Thread.h"
#include "Comunicador.h"
#include "SocketServer.h"
#include "UsuarioSinIdentificar.h"
#include "const.h"

typedef ListaBloqueante<Usuario*> ListaUsers;

class ConnectionAcceptingThread: public Thread {
private:

	int port;
	SocketServer socket;
	ListaUsers usuarios;
public:

	ConnectionAcceptingThread(int p);

	~ConnectionAcceptingThread();

	virtual void run();

	virtual void stop();
};

#endif
